







OrderedDictionary<(Of <TKey, TValue>)> Constructor (IEnumerable<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>, IComparer<(Of <TKey>)>) |
See Also |
![]() ![]() |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Creates a new OrderedDictionary. The Compare method of the passed comparison object will be used to compare keys in this dictionary.
A collection and keys and values (typically another dictionary) is used to initialized the contents of the dictionary.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public OrderedDictionary( IEnumerable<KeyValuePair<TKey, TValue>> keysAndValues, IComparer<TKey> comparer ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ keysAndValues As IEnumerable(Of KeyValuePair(Of TKey, TValue)), _ comparer As IComparer(Of TKey) _ ) |
Visual C++ |
---|
public: OrderedDictionary ( IEnumerable<KeyValuePair<TKey, TValue>>^ keysAndValues, IComparer<TKey>^ comparer ) |
Parameters
- keysAndValues
- IEnumerable<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>
A collection of keys and values whose contents are used to initialized the dictionary.
- comparer
- IComparer<(Of <TKey>)>
An instance of IComparer<TKey> that will be used to compare keys.
Remarks
The GetHashCode and Equals methods of the provided IComparer<TKey> will never
be called, and need not be implemented.